package com.eslserver.servletapi.core;

import java.io.InputStream;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ESLServletAPIConfig extends Config {
	public static final Logger LOG = LoggerFactory
			.getLogger(ESLServletAPIConfig.class);

	private static ESLServletAPIConfig eslServletAPIConfig;

	public static ESLServletAPIConfig getInstance(InputStream resourceAsStream) {
		if (eslServletAPIConfig == null) {
			eslServletAPIConfig = new ESLServletAPIConfig(resourceAsStream);
		}
		return eslServletAPIConfig;
	}

	private ESLServletAPIConfig(InputStream resourceAsStream) {
		super(resourceAsStream);
	}

	public static final String CONFIG = "config";
	public static final String TIMER_ELEMENT = "timer";
}
